package com.waitingresult.common.domain.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.waitingresult.common.base.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 部门表
 */
@ApiModel(value = "部门表")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "system_dept")
public class Dept extends BaseEntity {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 上级ID
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "上级ID")
    private Long parentId;

    /**
     * 父路径
     */
    @TableField(value = "path")
    @ApiModelProperty(value = "父路径")
    private String path;

    /**
     * 部门名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "部门名称")
    private String name;

    /**
     * 排序号
     */
    @TableField(value = "sort_number")
    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    /**
     * 部门负责人
     */
    @TableField(value = "lead")
    @ApiModelProperty(value = "部门负责人")
    private String lead;

    /**
     * 手机号码
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号码")
    private Integer phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 是否可以查看所有的数据
     */
    @TableField(value = "can_view_all_data")
    @ApiModelProperty(value = "是否可以查看所有的数据")
    private Boolean canViewAllData;

    /**
     * 备注信息
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注信息")
    private String remark;

}